<%@ Page Title="CUPS Manage Landlords" Language="vb" AutoEventWireup="false" MasterPageFile="~/Content/Site.Master" CodeBehind="manage_landlords.aspx.vb" Inherits="CupsApp.Web.Form.manage_landlords" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<div class="Content">
<div class="filler"></div>
    <div class="FullRow1">
        <center> <strong><asp:Label ID="lvlMsg" runat="server" ForeColor="#00CC00" ></asp:Label></strong></center>
    </div> 
   <div class="FullRow1">
     <div class="filler"></div>
     <div class="FormHeading">
         <strong><asp:Label ID="lblBasicInfo" runat="server" Text="NEW LANDLORD"></asp:Label></strong>
    </div>
  </div> 
  <div class="filler"></div>
  <div class="FullRow1">
    <div class="ContentRow2">
    </div>
    <div class="ContentRow1">
        <asp:Label ID="Label4" runat="server" Text="Name:"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
    </div>
    <div class="ContentRow2">
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ErrorMessage="* Name is Required" ControlToValidate="txtName"></asp:RequiredFieldValidator>
    </div>
</div>  

<div class="FullRow1">
    <div class="ContentRow2">
    </div>
    <div class="ContentRow1">
        <asp:Label ID="Label3" runat="server" Text="Phone:"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
    </div>
    <div class="ContentRow2">
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ErrorMessage="* Phone No. is Required!" ControlToValidate="txtPhone"></asp:RequiredFieldValidator>
    </div>
</div> 

<div class="FullRow1">
    <div class="ContentRow2">
    </div>
    <div class="ContentRow1">
        <asp:Label ID="Label2" runat="server" Text="Company Name:"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
    </div>
    <div class="ContentRow2">
    </div>
</div> 

<div class="FullRow1">
    <div class="ContentRow2">
    </div>
    <div class="ContentRow1">
        <asp:Label ID="Label5" runat="server" Text="Notes:"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtNotes" runat="server" TextMode="MultiLine" MaxLength="500" width= "300px" Height="60px"></asp:TextBox>
    </div>
    <div class="ContentRow2">
    </div>
</div> 
<br /><br /><br />
<div class="FullRow1">
     <hr/>
     <center><asp:Button ID="btnSave" runat="server" Text="Save" Width="83px" />&nbsp;&nbsp;<asp:Button ID="btnClear" CausesValidation="False" runat="server" Text="Clear Fields" Width="83px" /></center>
  </div>
<br /><br />

  <div class="FullRow1">
     <div class="FormHeading">
            <strong><asp:Label ID="Label1" runat="server" Text="EXISTING LANDLORD"></asp:Label></strong>
    </div>
  </div> 

  <div class="FullRow2"> 
  <div class="filler"></div> <div class="filler"></div>
      <asp:GridView ID="gvLandlords" runat="server" AutoGenerateColumns="False"
          DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="False" width = "99%">
          <Columns>
              <asp:ButtonField ButtonType="Link" Text="Edit" CommandName="Modify" />
              <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
              <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
              <asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
              <asp:BoundField DataField="CompanyName" HeaderText="Company Name" SortExpression="CompanyName" />
              <asp:BoundField DataField="Notes" HeaderText="Notes" SortExpression="Notes" />
              <asp:BoundField DataField="UpdatedOn" HeaderText="UpdatedOn" 
                  SortExpression="UpdatedOn" />
              <asp:BoundField DataField="UpdatedBy" HeaderText="UpdatedBy" 
                  SortExpression="UpdatedBy" />
              <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="~/Admin/manage_properties.aspx?landlordID={0}" 
                    Text="View Properties" />
          </Columns>
      
          <AlternatingRowStyle BackColor="#F8F8F8" />
      
      </asp:GridView>
  <div class="filler"></div> <div class="filler"></div>
  </div>
  
  
    
  <br />

</div>


<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetLandlords" TypeName="CupsApp.Service.CupsDomainService"></asp:ObjectDataSource>
</asp:Content>

